# -*- coding: cp1251 -*-
from base64 import b64decode, b64encode

gifFile = open("ddos.gif", "r+b")
gifString = b64encode(gifFile.read())
print gifString

#import base64
#x=open('ddos.gif').read()
#print base64.encodestring(x).strip()
